package com.ks.fission.controller;

import com.ks.core.base._ControllerBase;
import com.ks.core.core.Result;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.fission.controller.dto.TaskMemberRequest;
import com.ks.fission.service.IBFissionTaskMemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/bFissionTaskMember")
@Api(value = "应用端会员分享模块", description = "应用端会员分享模块")
public class BFissionTaskMemberClientController extends _ControllerBase {

    @Resource
    private IBFissionTaskMemberService ibFissionTaskMemberService;

    @PostMapping("/addTaskMember")
    @ApiOperation(value = "添加会员分享", notes = "添加会员分享，会员idiMemberId,任务idiTaskId")
    public Object addTaskMember(@RequestBody TaskMemberRequest taskMemberRequest) {
        int resultMap=ibFissionTaskMemberService.addTaskMember(getContext(),taskMemberRequest);
        return Result.success(resultMap);
    }


}
